package com.yhgm.utils.timer;

import com.yhgm.mapper.SystemLogDao;
import com.yhgm.mapper.UserLogDao;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import javax.annotation.Resource;

public class LogDeleteJob implements Job {
    @Resource
    private SystemLogDao systemLogDao;
    @Resource
    private UserLogDao userLogDao;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        systemLogDao.clearThreeMonth();
        userLogDao.clearThreeMonth();
    }
}
